package com.mw.businuss.user.dao;

import javacommon.base.BaseIbatis3Dao;

import org.springframework.stereotype.Repository;

import cn.org.rapid_framework.page.Page;
import cn.org.rapid_framework.page.PageRequest;

import com.mw.businuss.user.model.Userinfo;


@Repository
public class UserinfoDao extends BaseIbatis3Dao<Userinfo,java.lang.String>{
	
	@Override
	public String getIbatisMapperNamesapce() {
		return "Userinfo";
	}
	
	public void saveOrUpdate(Userinfo entity) {
		if(entity.getCuid() == null) 
			save(entity);
		else 
			update(entity);
	}
	
	public Page findPage(PageRequest query) {
		return pageQuery("Userinfo.findPage",query);
	//	return pageQuery("Userinfo.findPage",query);
	}
	

}
